﻿<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="运费对账" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-4 font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="addData()">新增</button>
                    <button class="btn btn-operate m-r-sm" ng-click="auditBillBatch(2)">批量审核</button>
                    <button class="btn btn-operate" ng-click="auditBillBatch(3)">批量审批</button>
                </div>
                <div class="search-bar wrapper-none col-xs-8">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" title="配置表格列"
                            ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="false">
                            <div title="导出">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                            <ul class="more-tool">
                                <li yb-download download-url="exportParam.sectionUrl"
                                    download-param="exportParam.sectionParam" download-key="ids">
                                    <i class="yb-icon ico-export-o"></i> 导出
                                </li>
                                <li yb-download download-url="exportParam.allUrl" download-param="condition"
                                    download-duration="3" download-duration="3">
                                    <i class="yb-icon ico-export-o"></i> 导出全部
                                </li>
                            </ul>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs"
                        ng-click="switchToolbar('AdvanceSearch')">高级搜索</button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="结算单号"
                            ng-model="condition.wayBillFeeNo">
                        <span class="input-group-addon cursor-pointer" ng-click="search()">搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search()"
                reset-data="reset()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label">运输方式：</label>
                        <select class="form-control" ng-model="condition.shippingMethodId"
                            ng-options="item.code as item.name for item in sendMethodList">
                            <option value="">请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">单据状态：</label>
                        <select class="form-control" ng-model="condition.status">
                            <option value="">请选择</option>
                            <option value=0>保存</option>
                            <option value=1>已提交</option>
                            <option value=2>审核通过</option>
                            <option value=-2>审核拒绝</option>
                            <option value=3>审批通过</option>
                            <option value=-3>审批拒绝</option>
                            <option value=-1>已删除</option>
                        </select>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span>制单时间</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showDateStart = !showDateStart"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')"
                            is-open="showDateStart" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showDateEnd = !showDateEnd"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')"
                            is-open="showDateEnd" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span>审核时间</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.auditDateStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showSHDateStart = !showSHDateStart"
                            ng-change="checkDate(condition, 'auditDateStart', 'auditDateEnd')"
                            is-open="showSHDateStart" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.auditDateEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showSHDateEnd = !showSHDateEnd"
                            ng-change="checkDate(condition, 'auditDateStart', 'auditDateEnd')"
                            is-open="showSHDateEnd" close-text="关闭" modal-size="small" readonly>
                    </div>                      
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tableConfig" col-fixed="true"
                has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="text-center border-l-none th-check">
                                        <div yb-check-box yb-checked="markInfo.allCheckedWayBill" yb-click="selectAll(dataList, 'WayBill')"></div>
                                    </th>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.fixedWidth"
                                            fixed-width="tbStyle.scrollLeft"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.scrollLeft">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dataList.length > 0">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.curRow}"
                                    ng-click="curRow($index)">
                                    <td width="40" class="text-center border-l-none">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, dataList, 'WayBill')"></div>
                                    </td>
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <div class="font-0">
                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="editData(item.id)"
                                                ng-disabled="!btnPermission.waybillReconciliationEdit||item.status==-1||item.status==1||item.status==2||item.status==3"
                                                title="{{!btnPermission.waybillReconciliationEdit?'无权限执行此操作':''}}">编辑</button>
                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="auditData(item.id)"
                                                ng-disabled="!btnPermission.waybillReconciliationAudit||item.status!=1"
                                                title="{{!btnPermission.waybillReconciliationAudit?'无权限执行此操作':''}}">审核</button>
                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="approveData(item.id)"
                                                ng-disabled="!btnPermission.waybillReconciliationApprove||item.status!=2"
                                                title="{{!btnPermission.waybillReconciliationApprove?'无权限执行此操作':''}}">审批</button>
                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="delData(item.id)"
                                                ng-disabled="!btnPermission.waybillReconciliationDel||item.status!=0"
                                                title="{{!btnPermission.waybillReconciliationDel?'无权限执行此操作':''}}">删除</button>
                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="printSingle(item.id)"
                                                ng-disabled="!btnPermission.waybillReconciliationPrint"
                                                title="{{!btnPermission.waybillReconciliationPrint?'无权限执行此操作':''}}">打印</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tbStyle.scrollLeft">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.curRow}"
                                    ng-click="selectRow($index)">
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <span ng-if="!itemCol.clickFn">{{item[itemCol.dataField]}}</span>
                                        <a ng-if="!!itemCol.clickFn" class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>

        <!-- 新增、编辑 -->
        <div tab heading="{{tabFlag.name}}" active="activeFlag[1]" ng-if="activeFlag[1]">
            <div class="clearfix" ng-show="curStep.val == 0">
                <div class="row wrapper-y-sm">
                    <div class="search-bar wrapper-none">
                        <div class="normal-search clearfix mid-size">
                            <label class="control-label">物流运单号：</label>
                            <input type="text" class="form-control m-r-sm" ng-model="billCondition.wayBillNo">
                            <label class="control-label">客户名称：</label>
                            <input type="text" class="form-control m-r-sm" ng-model="billCondition.dealerOrgName">
                            <label class="control-label"><i>*</i>发运方式：</label>
                            <select class="form-control m-r-sm" ng-model="billCondition.shippingMethodId"
                                ng-options="item.code as item.name for item in sendMethodList">
                                <option value="">请选择</option>
                            </select>
                            <label class="control-label"><i>*</i>单据类型：</label>
                            <select class="form-control" ng-model="billCondition.billType">
                                <option value="">请选择</option>
                                <option value="XGFT">发货通知单</option>
                                <option value="XGSC">三包出库单</option>
                                <option value="XGQD">区域调拨单</option>
                                <option value="XGFC">其它出库单</option>
                                <option value="XSCK">销售赠送出库单</option>
                            </select>
                            <span class="btn btn-primary control-label" ng-click="billSearch(1)">搜索</span>
                        </div>
                        <div class="wrapper-none search-bar-data-picker" style="margin-top:10px">
                            <div class="normal-search clearfix">
                                <label class="control-label"><span translate>开始时间</span>：</label>
                                <input style="margin-left:1%" type="text" class="form-control date-picker" ng-model="billCondition.deliveryTimeStart"
                                       datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showAddDateStart = !showAddDateStart"
                                       ng-change="checkDate(billCondition, 'deliveryTimeStart', 'deliveryTimeEnd')"
                                       is-open="showAddDateStart" close-text="关闭" modal-size="small" readonly>                                       
                                <label class="control-label" style="margin-left:4.5%"><span translate>结束时间</span>：</label>
                                <input style="margin-left:.1%"  type="text" class="form-control date-picker" ng-model="billCondition.deliveryTimeEnd"
                                       datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showAddDateEnd = !showAddDateEnd"
                                       ng-change="checkDate(billCondition, 'deliveryTimeStart', 'deliveryTimeEnd')"
                                       is-open="showAddDateEnd" close-text="关闭" modal-size="small" readonly>                                       
                            </div>
                        </div>                        
                    </div>
                </div>
                <table class="table">
                    <thead>
                        <th width="40" class="text-center border-l-none th-check">
                            <div yb-check-box yb-checked="markInfo.allCheckedBill" yb-click="selectAll(billDataList, 'Bill')"></div>
                        </th>
                        <th>物流运单号</th>
                        <th>客户名称</th>
                        <th>单据类型</th>
                        <th>业务单号</th>
                        <th>发运方式</th>
                        <th>承运商</th>
                        <th>初始运费</th>
                        <th>调整后运费</th>
                        <th>最终运费</th>
                    </thead>
                    <tbody>
                        <tr ng-repeat="item in billDataList track by $index">
                            <td width="40" class="text-center border-l-none">
                                <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item, billDataList, 'Bill')"></div>
                            </td>
                            <td class="spill-dots" title="{{item.wayBillNo}}">{{item.wayBillNo}}</td>
                            <td class="spill-dots" title="{{item.dealerOrgName}}">{{item.dealerOrgName}}</td>
                            <td class="spill-dots" title="{{item.billType|orderType}}">{{item.billType|orderType}}</td>
                            <td class="spill-dots" title="{{item.businessOrderNos}}">{{item.businessOrderNos}}</td>
                            <td class="spill-dots" title="{{item.shippingMethod}}">{{item.shippingMethod}}</td>
                            <td class="spill-dots" title="{{item.carrierOrgName}}">{{item.carrierOrgName}}</td>
                            <td class="spill-dots" title="{{item.initinalCarriage}}">{{item.initinalCarriage}}</td>
                            <td class="spill-dots" title="{{item.afterModifyCarriage}}">{{item.afterModifyCarriage}}</td>
                            <td class="spill-dots" title="{{item.finalCarriage}}">{{item.finalCarriage}}</td>
                        </tr>
                        <tr ng-if="billDataList.length==0">
                            <td colspan="10" align="center">暂时没有数据</td>
                        </tr>
                    </tbody>
                </table>
                <div class="page-bar wrapper-y-sm clearfix">
                    <div yb-page-info ng-model="billPageInfo" yb-refresh="billSearch()"></div>
                </div>
                <div class="bottom-area btn-bar text-center clearfix">
                    <button type="button" class="btn btn-default m-r-sm" ng-click="nextStep()">下一步</button>
                    <button type="button" class="btn btn-default" ng-click="changeTab(0)">取消</button>
                </div>
            </div>
            <div class="clearfix" ng-show="curStep.val == 1">
                <div class="panel-bar clearfix">
                    <div class="pull-left">
                        <i></i>基本信息
                    </div>
                </div>
                <div class="m-t-sm form-up-tb clearfix">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-3 m-b-n max-w-100">总运费：</label>
                        <label class="col-xs-9 wrapper-none">{{finalCarriageTotal}}</label>
                    </div>
                </div>

                <div class="row wrapper-y-xs" ng-if="tabFlag.type==1">
                    <div class="col-xs-12 operate-bar font-0">
                        <button class="btn btn-operate m-r-sm" ng-click="preStep()">添加</button>
                    </div>
                </div>
                <table class="table">
                    <thead>
                        <th width="60">操作</th>
                        <th>物流运单号</th>
                        <th>客户名称</th>
                        <th>业务单号</th>
                        <th>发运方式</th>
                        <th>承运商</th>
                        <th>初始运费</th>
                        <th>调整后运费</th>
                        <th>最终运费</th>
                    </thead>
                    <tbody>
                        <tr ng-repeat="item in selectedBillDataList track by $index">
                            <td width="60">
                                <button type="button" class="btn btn-operate" ng-click="delSelectBills($index)">删除</button>
                            </td>
                            <td class="spill-dots" title="{{item.wayBillNo}}">{{item.wayBillNo}}</td>
                            <td class="spill-dots" title="{{item.dealerOrgName}}">{{item.dealerOrgName}}</td>
                            <td class="spill-dots" title="{{item.businessOrderNos}}">{{item.businessOrderNos}}</td>
                            <td class="spill-dots" title="{{item.shippingMethod}}">{{item.shippingMethod}}</td>
                            <td class="spill-dots" title="{{item.carrierOrgName}}">{{item.carrierOrgName}}</td>
                            <td class="spill-dots" title="{{item.initinalCarriage}}">{{item.initinalCarriage}}</td>
                            <td class="spill-dots" title="{{item.afterModifyCarriage}}">{{item.afterModifyCarriage}}</td>
                            <td class="spill-dots" title="{{item.finalCarriage}}">{{item.finalCarriage}}</td>
                        </tr>
                        <tr ng-if="selectedBillDataList.length==0">
                            <td colspan="10" align="center">暂时没有数据</td>
                        </tr>
                    </tbody>
                </table>
                
                <div class="bottom-area btn-bar text-center clearfix">
                    <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData()">保存</button>
                    <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData('submit')" ng-if="tabFlag.type==1">提交</button>
                    <button type="button" class="btn btn-default" ng-click="changeTab(0)">取消</button>
                </div>
            </div>
        </div>

        <!-- 详情 -->
        <div tab heading="详情" active="activeFlag[2]" ng-if="activeFlag[2]">
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>基本信息
                </div>
            </div>
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">结算单号：</label>
                    <label class="col-xs-8  wrapper-none spill-dots">{{detailInfo.headInfo.wayBillFeeNo||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">总运费：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.totalFee||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">审核后总运费：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.afterAuditTotalFee||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">运输方式：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.shippingMethod||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">单据状态：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">
                        {{detailInfo.headInfo.status == null ? '-' :
                        detailInfo.headInfo.status == 0 ? '已保存' :
                        detailInfo.headInfo.status == 1 ? '已提交' :
                        detailInfo.headInfo.status == 2 ? '审核通过' :
                        detailInfo.headInfo.status == -2 ? '审核拒绝' :
                        detailInfo.headInfo.status == 3 ? '审批通过' :
                        detailInfo.headInfo.status == -3 ? '审批拒绝' :
                        detailInfo.headInfo.status == -1 ? '已删除' :'未知状态'}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单人：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.createUserName||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单时间：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.createDate == null ? '-' :detailInfo.headInfo.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">审核人：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.auditUserName||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">审核时间：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.auditDate == null ? '-' : detailInfo.headInfo.auditDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">审批人：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.approvalUserName||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">审批时间：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.approvalDate == null ? '-' : detailInfo.headInfo.approvalDate|YbDate:'yyyy-MM-dd HH:mm:ss'||'-'}}</label>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:190px;">
                <div class="panel-bar clearfix">
                    <div class="pull-left">
                        <i></i>运单信息
                    </div>
                </div>
            <table class="table">
                <thead>
                <th>物流运单号</th>
                <th>客户名称</th>
                <th>业务单号</th>
                <th>发运方式</th>
                <th>承运商</th>
                <th>初始运费</th>
                <th>调整后运费</th>
                <th>最终运费</th>
                </thead>
                <tbody>
                <tr ng-repeat="item in detailInfo.details track by $index">
                    <td class="spill-dots" title="{{item.wayBillNo}}">{{item.wayBillNo}}</td>
                    <td class="spill-dots" title="{{item.dealerOrgName}}">{{item.dealerOrgName}}</td>
                    <td class="spill-dots" title="{{item.businessOrderNos}}">{{item.businessOrderNos}}</td>
                    <td class="spill-dots" title="{{item.shippingMethod}}">{{item.shippingMethod}}</td>
                    <td class="spill-dots" title="{{item.carrierOrgName}}">{{item.carrierOrgName}}</td>
                    <td class="spill-dots" title="{{item.initinalCarriage}}">{{item.initinalCarriage}}</td>
                    <td class="spill-dots" title="{{item.afterModifyCarriage}}">{{item.afterModifyCarriage}}</td>
                    <td class="spill-dots" title="{{item.finalCarriage}}">{{item.finalCarriage}}</td>
                </tr>
                <tr ng-if="detailInfo.details.length==0">
                    <td colspan="10" align="center">暂时没有数据</td>
                </tr>
                </tbody>
            </table>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-default m-r-sm" ng-click="changeTab(0)">取消</button>
            </div>
        </div>

        <!-- 审核、审批 -->
        <div tab heading="{{tabFlag.name}}" active="activeFlag[3]" ng-if="activeFlag[3]">
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>基本信息
                </div>
            </div>
            <form name="orderForm" class="form-horizontal form-up-tb p-t-xs clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span>结算单号</span>：</label>
                    <div class="col-xs-8 control-label" style="text-align: left;">
                        {{orderObj.headInfo.wayBillFeeNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span>总费用</span>：</label>
                    <div class="col-xs-8 control-label" style="text-align: left;">
                        {{orderObj.headInfo.totalFee || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="tabFlag.type==2">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span>变更比例%</span>：</label>
                    <div class="col-xs-6 wrapper-none">
                        <input type="text" class="form-control" ng-model="orderObj.headInfo.alterationRatio" required
                            yb-number-input disable-decimal="false" decimal-places="3" max="5" min="-5" negative="true" ng-change="alterationRatioChange()">

                        <div class="msg-block" ng-if="!orderObj.headInfo.alterationRatio && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                <span>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="tabFlag.type==3">
                    <label class="col-xs-4 control-label max-w-100"><span>变更比例</span>：</label>
                    <div class="col-xs-8 control-label" style="text-align: left;">
                        {{orderObj.headInfo.alterationRatio || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span>审核后总运费</span>：</label>
                    <div class="col-xs-8 control-label" style="text-align: left;">
                        {{orderObj.headInfo.afterAuditTotalFee || "-"}}
                    </div>
                </div>
            </form>
            <div class="main-area d-b-60" style="top:120px;width:68vw;">
                <div class="panel-bar clearfix">
                    <div class="pull-left">
                        <i></i>运单信息
                    </div>
                </div>
                <div yb-table-fixed class="table-fixed-wrap" style="top:50px;">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{detailTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in detailTbConf.tableCol track by $index" width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol" target-width="detailTbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.details.length > 0">
                        <table class="table-fixed border-none" width="{{detailTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in orderObj.details track by $index">
                                    <td ng-repeat="itemCol in detailTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                        title="{{item[itemCol.dataField]}}" class="spill-dots">

                                        <span ng-if="!itemCol.clickFn">{{item[itemCol.dataField]}}</span>
                                        <a ng-if="!!itemCol.clickFn" class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.details.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="main-area d-b-60" style="left:auto;top:120px;width:225px;">
                <div class="panel-bar clearfix">
                    <div class="pull-left">
                        <i></i>
                        <span ng-if="tabFlag.type == 2">审核意见</span>
                        <span ng-if="tabFlag.type == 3">审批意见</span>
                    </div>
                </div>
                <div class="main-wrap p-b-lg over-flow-h" style="top:50px;">
                    <textarea yb-word-count max-size="500" class="form-control full" ng-model="orderObj.headInfo.auditRemark" placeholder="请输入您的意见"></textarea>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="handleAudit(orderForm.$valid,'1')">通过</button>
                <button type="button" class="btn btn-primary m-r-sm" ng-click="handleAudit(orderForm.$valid,'2')">拒绝</button>
                <button type="button" class="btn btn-default m-r-sm" ng-click="changeTab(0)">取消</button>
            </div>
        </div>
    </div>
</div>
